/* descriptive analysis */
/* number of actors */
proc freq data=actoren; tables actor_id/out=response; 
proc freq data=response; tables count; run;

/* table 1 */
proc freq data=consultations; tables agency agency*legal; run; 

/* table 2 */
proc freq data=consultations; 
 tables complexitytext*complexitydocument/nocol norow chisq; 
 where complexitydocument ne 0;

proc corr data=consultations spearman;
 var complexitytext complexitydocument;
 where complexitydocument ne 0;
run; 

/* Table 3; distribution of dependent variables */
proc freq data=actoren; tables agency*grouptype/nocum nocol nopercent chisq; run;

proc means data=consultations mean std maxdec=2; var hhi; class agency;
proc means data=consultations mean std maxdec=2; var hhi; run;
